<?php /* Smarty version Smarty-3.1.6, created on 2018-05-08 16:49:48
         compiled from "D:/phpStudy/PHPTutorial/WWW/myshop/Admin/View\Auth\addauth.html" */ ?>
<?php /*%%SmartyHeaderCode:2262093095af164ac4eb2d4-25806027%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'fb770385a05121fbfe31ebd2a481d11792320114' => 
    array (
      0 => 'D:/phpStudy/PHPTutorial/WWW/myshop/Admin/View\\Auth\\addauth.html',
      1 => 1515560395,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2262093095af164ac4eb2d4-25806027',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'authp' => 0,
    'v' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5af164ac5608d',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5af164ac5608d')) {function content_5af164ac5608d($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<?php echo @ADMIN_CSS_PATH;?>
style.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript">
	function shows(v){
		if(v.value==0){
			document.getElementById('showsel').style.display='none';
		}else{
			document.getElementById('showsel').style.display='inline';
		}
	}
</script>
<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">权限管理</a></li>
    <li><a href="#">权限列表</a></li>
    <li><a href="#">添加权限</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    <div class="formtitle"><span>基本信息</span></div>
    <form action="<?php echo @__SELF__;?>
" method="post">
    <ul class="forminfo">
    <li><label>权限编号</label><input name="id" id="id" type="text" class="dfinput" /><i></i></li>
    <li><label>权限名称</label><input name="name" id="name" type="text" class="dfinput" /><i></i></li>
    <li><label>权限等级</label><select class="select1" id="level" name="level" onchange="shows(this)">
					    <option selected="selected" value="0">顶级权限</option>
					    <option value="1">次顶级权限</option>
					</select>
    				<span id="showsel" style="display: none;">父级权限为：<select class="pid" id="pid" name="pid" >
					    <option selected="selected" value="0">请选择父级权限</option>
					    <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['authp']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
					    <option value="<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
</option>
					    <?php } ?>
					</select></span></li>
    
    <li><label>控制器</label><input name="controller" id="controller" type="text" class="dfinput" /><i>大驼峰命名</i></li>
    <li><label>操作方法</label><input name="action" id="action" type="text" class="dfinput" /><i>全小写</i></li>
    <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="确认保存"/></li>
    </ul>
    </form>
    
    </div>
</body>
</html>
<?php }} ?>